# -*- codeing = utf-8 -*-
from flask import Flask


from view.main.main import _main
from view.down_and_fault.stoppage import _stoppage
from view.down_and_fault.down import _down
from view.down_and_fault.parse import _parse
from view.down_and_fault.contrast import _contrast
from view.test.test1 import _test1
from view.test.test2 import _test2
app = Flask(__name__)
app.register_blueprint(_main)
app.register_blueprint(_stoppage)
app.register_blueprint(_down)
app.register_blueprint(_parse)
app.register_blueprint(_contrast)
app.register_blueprint(_test1)
app.register_blueprint(_test2)
if __name__ == '__main__':
    # 在Linux服务器上运行
    # app.run(host='0.0.0.0',port=8000)

    # 在本地运行
    app.run()